home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_68 / PlaceObject2_1015_453 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  7.2 KB  |  206 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 1223 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -256 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 749)
  10.       {
  11.          set("\x01",eval("\x01") + 90);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 481)
  15.       {
  16.          set("\x01",eval("\x01") - 449);
  17.       }
  18.       else if(eval("\x01") == 308)
  19.       {
  20.          set("\x01",eval("\x01") + 220);
  21.       }
  22.       else
  23.       {
  24.          if(eval("\x01") == 315)
  25.          {
  26.             set("\x01",eval("\x01") - 158);
  27.             toggleHighQuality();
  28.             stopAllSounds();
  29.             stop();
  30.             break;
  31.          }
  32.          if(eval("\x01") == 883)
  33.          {
  34.             set("\x01",eval("\x01") - 575);
  35.             if(function ┬º\x01\x02┬º()
  36.             {
  37.                return 1223 % 511 * 5;
  38.             })
  39.             {
  40.                set("\x01",eval("\x01") + 220);
  41.             }
  42.          }
  43.          else
  44.          {
  45.             if(eval("\x01") == 528)
  46.             {
  47.                set("\x01",eval("\x01") - 189);
  48.                if(_root.paus3)
  49.                {
  50.                   speed = 0;
  51.                   maxspeed = 0;
  52.                }
  53.                if(!_root.paus3)
  54.                {
  55.                   if(this.hitTest(_root.camera))
  56.                   {
  57.                      speed = 0;
  58.                      maxspeed = 10;
  59.                      damage = 0;
  60.                      grav++;
  61.                      _Y = _Y + grav;
  62.                      while(_root.ground.hitTest(_X,_Y,true))
  63.                      {
  64.                         _Y--;
  65.                         grav = 0;
  66.                      }
  67.                      if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  68.                      {
  69.                         _X = _X - speed;
  70.                      }
  71.                      if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  72.                      {
  73.                         _X = _X + speed;
  74.                      }
  75.                      if(_root.ground.hitTest(_X,_Y - _height - 15,true))
  76.                      {
  77.                         grav = 1;
  78.                      }
  79.                      moving = 0;
  80.                      above = 0;
  81.                      if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  82.                      {
  83.                         this._x += movespeed;
  84.                         _xscale = scale;
  85.                         this.gotoAndStop("run");
  86.                         attack = 0;
  87.                         moving = 1;
  88.                      }
  89.                      else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  90.                      {
  91.                         this._x -= movespeed;
  92.                         _xscale = - scale;
  93.                         this.gotoAndStop("run");
  94.                         attack = 0;
  95.                         moving = 1;
  96.                      }
  97.                      if(_root.char._currentframe == 45)
  98.                      {
  99.                         this.gotoAndStop("idle");
  100.                         moving = 0;
  101.                      }
  102.                      if(!moving && this._currentframe != 5)
  103.                      {
  104.                         moving = 0;
  105.                      }
  106.                      if(this._currentframe == 35)
  107.                      {
  108.                         this._x += movespeed;
  109.                      }
  110.                      jumpHits = 9;
  111.                      i = 1;
  112.                      while(i <= jumpHits)
  113.                      {
  114.                         jumpHit = _root.ground["jumpHit" + i];
  115.                         if(this.hitTest(jumpHit) && moving == 1)
  116.                         {
  117.                            grav = - jumpHeight;
  118.                            _Y = _Y - 4;
  119.                            moving = 0;
  120.                         }
  121.                         i++;
  122.                      }
  123.                      attack = 0;
  124.                      jumping = 0;
  125.                      if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
  126.                      {
  127.                         if(this._currentframe != 10 && this._currentframe != 15)
  128.                         {
  129.                            attack1();
  130.                         }
  131.                         if(this._currentframe != 10 && this._currentframe != 15)
  132.                         {
  133.                            attack = 0;
  134.                         }
  135.                      }
  136.                   }
  137.                }
  138.                break;
  139.             }
  140.             if(eval("\x01") == 882)
  141.             {
  142.                set("\x01",eval("\x01") + 1);
  143.                ┬º┬ºpush(!function ┬º\x01\x02┬º()
  144.                {
  145.                   return 1223 % 511 * 5;
  146.                });
  147.             }
  148.             else if(eval("\x01") == 397)
  149.             {
  150.                set("\x01",eval("\x01") - 52);
  151.                var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  152.                {
  153.                   return 1223 % 511 * 5;
  154.                };
  155.             }
  156.             else if(eval("\x01") == 839)
  157.             {
  158.                set("\x01",eval("\x01") - 524);
  159.                if(function ┬º\x01\x02┬º()
  160.                {
  161.                   return 1223 % 511 * 5;
  162.                })
  163.                {
  164.                   set("\x01",eval("\x01") - 158);
  165.                }
  166.             }
  167.             else
  168.             {
  169.                if(eval("\x01") == 339)
  170.                {
  171.                   set("\x01",eval("\x01") - 339);
  172.                   break;
  173.                }
  174.                if(eval("\x01") == 332)
  175.                {
  176.                   set("\x01",eval("\x01") + 550);
  177.                   ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  178.                   {
  179.                      return 1223 % 511 * 5;
  180.                   }));
  181.                }
  182.                else if(eval("\x01") == 157)
  183.                {
  184.                   set("\x01",eval("\x01") - 125);
  185.                }
  186.                else if(eval("\x01") == 32)
  187.                {
  188.                   set("\x01",eval("\x01") + 365);
  189.                   ┬º┬ºpush("\x0f");
  190.                   ┬º┬ºpush(1);
  191.                }
  192.                else
  193.                {
  194.                   if(eval("\x01") != 345)
  195.                   {
  196.                      break;
  197.                   }
  198.                   set("\x01",eval("\x01") - 13);
  199.                   ┬º┬ºpush("\x0f");
  200.                }
  201.             }
  202.          }
  203.       }
  204.    }
  205. }
  206.